<!--
 * @Author: 杨帆 14613505+yang-fan-yf123@user.noreply.gitee.com
 * @Date: 2024-09-11 11:36:22
 * @LastEditors: 'YSJ' '951866543@qq.com'
 * @LastEditTime: 2024-09-13 16:06:28
 * @FilePath: \smart-subway\src\views\HomePage.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <Header />
  <router-view />
  <Footer />
</template>

<script setup>
import Header from '../components/Header.vue'
import Footer from '../components/Footer.vue'
import router from '../router'
import { useLineData } from '../store/index'
import { removeAllCones } from '../cesiumTools/material/effectController'
import { onMounted } from 'vue'
import { flyToDefaultView } from '@/cesiumTools/sceneManager'
const { viewer } = useLineData()

onMounted(async () => {
  //清除重保活动的wall
  removeAllCones(viewer)
  //飞到默认视角
  flyToDefaultView(viewer)
})
</script>

<style scoped></style>
